﻿using MKAdminCore.DTO.CusAttribute;
using System;
using System.Collections.Generic;
using System.Text;

namespace MKAdminCore.DTO.Web.Communicate
{
    public class RegexIsMatchParam
    {
        /// <summary>
        /// 正则表达式规则
        /// </summary>
        [CusRequired(ErrorMsg = "请输入正则表达式")]
        public string RegexPattern { get; set; }
        /// <summary>
        /// 需要匹配的文字内容
        /// </summary>
        [CusRequired(ErrorMsg = "请输入匹配的文字内容")]
        public string TextContent { get; set; }

    }

    public class GetMatchPatternParam
    {
        /// <summary>
        /// 正则表达式规则
        /// </summary>
        [CusRequired(ErrorMsg = "请提供正则表达式匹配项")]
        public string RegexPattern { get; set; }

    }
}
